import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Element from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
Vue.config.productionTip = false
Vue.use(Element)
import axios from 'axios'
import VueAxios from 'vue-axios'
 
Vue.prototype.axios = axios;
Vue.use(VueAxios, axios);

new Vue({
  router,
  store,
  created(){
    this.$store.commit('updateLoginHide',JSON.parse(sessionStorage.getItem("loginHide")))
    this.$store.commit('updateuserInfo',JSON.parse(sessionStorage.getItem("userInfo")))
  },
  render: h => h(App)
}).$mount('#app')
